<?php

class RedisConnection
{		
	/**
     * construct
     */
	private function __construct()
	{
		
	}
	
	private function __clone()
	{
	}
	/**
	 * Get the Connection Instance.
	 *
	 * @param void.
	 * @return Connection
	 */
	public static function getRedis()
	{
		$redis = new Redis();
		if ($redis->pconnect(REDIS_HOST, REDIS_PORT))
		{
			return $redis;
		}
		else
		{
			throw new Model_Exception("Could not connect to Redis", 0);
		}
	}
}
?>